#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
void sort(int* p, int n) 
{
	int* start = p; int i = n - 1,j=n-1; n = n - 1;
	while (n)
	{      
		i = j;
		while (i)
		{
			if (*p > *(p + 1))
			{
				int tmp = *p;;
				*p = *(p + 1);
				*(p + 1) = tmp;
			}
			p++; i--;
		}
		p = start;
		n--;
	}
}
int main()
{
	int arr[100] = { 0 };
	int n = 0;
	while (scanf("%d", &n) == 1)
	{
		int i = 0;
		for (i = 0; i < n; i++)
		{
			scanf("%d", &arr[i]);
		}
		sort(&arr[0], n);
		for (i = 0; i < n; i++)
		{
			printf("%d ", arr[i]);
		}
		printf("\n");
	}

	return 0;
}